package game;

public class GameField {
	
	public GameField()
	{
		clearTab();
	}
	public static int ROW_SIZE = 10;
    public static int SIZE = 10;
    public static int PLAYER_AMOUNT = 4;
    public int[][] mainTab = new int[ROW_SIZE*SIZE*PLAYER_AMOUNT/2][ROW_SIZE*SIZE*PLAYER_AMOUNT/2];

    public synchronized int[][] getTab()
    {
        return mainTab;
    }
    public synchronized void setShoot(int row,int col, int val)
    {
    	mainTab[col][row]=val;
    }
    public synchronized void setTab(int[][] tab)
    {
    	this.mainTab = tab;
    }
    public void clearTab()
    {
    	for(int i=0;i<mainTab.length;i++)
    		for (int j=0;j<mainTab.length;j++)
    		{
    			mainTab[i][j]=0;
    		}
    }

}
